package com.itheima.d03_io_byte_copyfile;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class TEST {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\游戏\\ikun合集\\project\\1.jpg");
        FileOutputStream fos = new FileOutputStream("D:\\游戏\\ikun合集\\project\\2554.jpg");

        byte[] bytes = new byte[1024];
        int len=-1;
        while ((len=fis.read(bytes))!=-1) {
            fos.write(bytes,0,len);
        }
        fos.close();
        fis.close();
        System.out.println("复制完毕！");
    }

}
